#ifndef CCSTREAM_FILE
#define CCSTREAM_FILE
#ifdef _WIN32
extern "C" __declspec(dllexport) 
#endif
class
CStreamFile_pub{
protected:
	void* ptr;
	char* pFileName;
public:
	virtual void setFileName(char* fName)=0;
	virtual int getFileSize()=0;
	virtual char* ReadtoEnd(int position)=0;
	virtual char* ReadLength(int position, int length)=0;
	virtual char* ReadtoStr(int position, char*)=0;
	virtual int FindStr(char*)=0;
	virtual  bool WritetoFile(int position, char*, int)=0;
};
extern "C"class CStreamFile :public CStreamFile_pub
{

	void clearVec();
public:	
	CStreamFile();
	void setFileName(char* fName);
	int getFileSize();
	char* ReadtoEnd(int position);
	char* ReadLength(int position, int length);
	char* ReadtoStr(int position, char*);
	int FindStr(char*);
	bool WritetoFile(int position, char*, int);
	~CStreamFile();
};
#endif